package org.ihelpuoo.parser.segment;

import org.ihelpuoo.core.Factory;
import org.ihelpuoo.lang.NutException;
import org.ihelpuoo.lang.SegmentNotFoundException;

public abstract class SegmentFactory extends Factory
{
	public abstract Segment create(String name) throws SegmentNotFoundException;

	public abstract boolean contains(String name);

	public abstract boolean isAutoReload();

	public abstract String getHome();

	public abstract String getExtension();

	public abstract Segment getTemplate(String name) throws SegmentNotFoundException;

	public abstract void setTemplate(String name, Segment seg) throws SegmentNotFoundException;

	@Override
	public void depose() throws NutException
	{
	}

}
